package com.osmino.core;

import android.app.AlertDialog;
import android.content.DialogInterface;
import com.osmino.core.DialogGenerator.DialogHost;

public final class AlertDialogCallback extends DialogCallback {

	public AlertDialogCallback(DialogHost dialogHost, int dialogId) {
		super(dialogHost, dialogId);
	}

	@Override
	protected DialogInfo createDialogInfo(DialogInterface dialog, int which) {
		DialogInfo info = new DialogInfo(mDialogId, which);
		info.listView = ((AlertDialog) dialog).getListView();
		return info;
	}

}
